﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SmartPatientCentre.Common
{
    public static class Sodium
    {
        public static decimal LowerLimit = 135;
        public static decimal UpperLimit = 145;

        public static bool NormalRange(decimal value)
        {
            if (value >= LowerLimit && value <= UpperLimit)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

    public static class Potassium
    {
        public static decimal LowerLimit = 3.7M;
        public static decimal UpperLimit = 5.2M;
        public static bool NormalRange(decimal value)
        {
            if (value >= LowerLimit && value <= UpperLimit)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

    public static class Urea
    {
        public static decimal LowerLimit = 3;
        public static decimal UpperLimit = 7;

        public static bool NormalRange(decimal value)
        {
            if (value >= LowerLimit && value <= UpperLimit)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

    public static class Creatinine
    {
        public static decimal MaleLowerLimit = 60;
        public static decimal MaleUpperLimit = 110;

        public static decimal FemaleLowerLimit = 45;
        public static decimal FemaleUpperLimit = 90;

        public static bool MaleNormalRange(decimal value)
        {
            if (value >= MaleLowerLimit && value <= MaleUpperLimit)
            {
                return true;
            }
            else
            {
                return false;
            }
        }

        public static bool FemaleNormalRange(decimal value)
        {
            if (value >= FemaleLowerLimit && value <= FemaleUpperLimit)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }

}
